
var item1=$('.item1'),item2=$('.item2'),item3=$('.item3'),item=$('.item');
var ind=0;
item.swipeUp(function(){
    ind++; 
    if(ind > item.length-1){
        ind=0;
    }
    item.css("display","none");
    item.eq(ind).css("display","block");
    item.eq(ind).css("animation","item .5s linear");
    // item.eq(ind).css("animation","");
})
item.swipeDown(function(){
    ind--; 
    if(ind < 0){
        ind=item.length-1;
    }
    item.css("display","none");
    item.eq(ind).css("display","block");
    item.eq(ind).css("animation","item2 .5s linear");
})
